<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="vue.global.js"></script>
</head>

<body>
  <div id="app">{{mag}}
    <h1>{{ web.title }}</h1>
    <h1>{{ web.url }}</h1>
  </div>

  <script>
    Vue.createApp({
      //setup选项 用于设置响应式数据和方法等
      setup() {
        const web = Vue.reactive({
          title: "熊哥编程",
          url: "xiongge.com"
        })
        return {
          mag: "success1",
          web
        }
      }
    }).mount("#app")
  </script>
</body>

</html>